//
//  Adapt.swift
//  Nairacup
//
//  Created by ec on 2024/9/19.
//

import UIKit

struct Adapt {
    
    static let windowWidth = UIScreen.main.bounds.width
    static let windowHeight = UIScreen.main.bounds.height
    static let statusBarHeight = UIApplication.shared.statusBarFrame.height
    static let navigationBarHeight: CGFloat = 44
    static let tabBarHeight: CGFloat = (49 + bottomHeight)
    static let topHeight: CGFloat = (statusBarHeight + navigationBarHeight)
    static let bottomHeight: CGFloat = (statusBarHeight > 20 ? 34 : 0)
    static let margin: CGFloat = 16
    static let defaultIconSize: CGFloat = 24
    static let cornerRadius: CGFloat = 12
    static let ratio: CGFloat = windowWidth / 375
    static let isIphoneX: Bool =  UIApplication.shared.keyWindow?.safeAreaInsets.bottom ?? 0 > 0
    
    static let appName = "Nairacup"

    static let loginSessionId = "LoginSessionId"
    static let loginUserId = "LoginUserId"
    static let loginUserInfo = "LoginUserInfo"
    static let loginUserPhone = "LoginUserPhone"

    static let loginStatusChanged = "LoginStatusChanged"
    
    static let idfa = ""

}
